package com.gin.kotlin.no_gay_alliance.adapter.reply

import android.content.Context
import com.gin.kotlin.no_gay_alliance.base.AbstractBindingRecyclerViewAdapter
import com.gin.kotlin.no_gay_alliance.base.MyHandler
import com.gin.kotlin.no_gay_alliance.databinding.ItemCustomReputationLevelBinding
import com.gin.nga.response.reply.CustomReputationLevel

class CustomReputationLevelAdapter(context: Context, handler: MyHandler, data: MutableList<CustomReputationLevel> = mutableListOf()) :
    AbstractBindingRecyclerViewAdapter<ItemCustomReputationLevelBinding, CustomReputationLevel>(context, handler, true, data) {
    override fun onBindViewHolder(holder: ViewHolder<ItemCustomReputationLevelBinding>, position: Int, b: ItemCustomReputationLevelBinding, dataModel: CustomReputationLevel) {
        b.tvName.text = dataModel.name
        b.tvRank.text = dataModel.rank.toString()
    }
}